﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class Publishes
    {
        #region Fields
        /// <summary>
        /// 发布数量
        /// </summary>
        private int count;
        /// <summary>
        /// 发布数量
        /// </summary>
        public int Count
        {
            get { return count; }
            //set { count = value; }
        }
        /// <summary>
        /// 新闻Id
        /// </summary>
        private decimal newsId;
        #endregion Fields

        #region Constructor
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        public Publishes(decimal newsId,int newsPublishCount)
        {
            this.newsId = newsId;
            this.count = newsPublishCount;
        }
        #endregion Constructor

        /// <summary>
        /// 增加发布
        /// </summary>
        /// <param name="newPublish">新的发布对象</param>
        public int Add(Publish newPublish)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 删除发布
        /// </summary>
        /// <param name="publishId">发布Id</param>
        public int Delete(decimal publishId)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 删除发布
        /// </summary>
        /// <param name="publishObject">发布对象</param>
        public int Delete(Publish publishObject)
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 获得所有的发布
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        public static List<Publish> GetAllPublishes(decimal newsId)
        {
            throw new System.NotImplementedException();
        }
    }
}
